home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
IDLIncludes
/
SpeechRecognition.idl
< prev
next >
Wrap
Text File
|
1996-05-01
|
5KB
|
129 lines
/*
File: SpeechRecognition.idl
Contains: Apple Speech Recognition Toolbox Interfaces.
Version: Technology: PlainTalk 1.5
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
*/
#ifndef __SPEECHRECOGNITION_IDL__
#define __SPEECHRECOGNITION_IDL__
#include <somobj.idl>
#include <somcls.idl>
#ifndef __MEMORY_IDL__
#include <Memory.idl>
#endif
#ifdef __SOMIDL__
#if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
/* Error Codes [Speech recognition gets -5100 through -5199] */
/* Type Definitions */
typedef OpaquePtr SRSpeechObject;
typedef SRSpeechObject SRRecognitionSystem;
typedef SRSpeechObject SRRecognizer;
typedef SRSpeechObject SRSpeechSource;
typedef SRSpeechSource SRRecognitionResult;
typedef SRSpeechObject SRLanguageObject;
typedef SRLanguageObject SRLanguageModel;
typedef SRLanguageObject SRPath;
typedef SRLanguageObject SRPhrase;
typedef SRLanguageObject SRWord;
/* between 0 and 100 */
typedef unsigned short SRSpeedSetting;
/* between 0 and 100 */
typedef unsigned short SRRejectionLevel;
/* When an event occurs, the user supplied proc will be called with a pointer */
/* to the param passed in and a flag to indicate conditions such */
/* as interrupt time or system background time. */
typedef SOMLargeStruct SRCallBackStruct; /* Derived from a struct of 20 bytes in size */
/* Call back procedure definition */
typedef OpaquePtr SRCallBackProcPtr;
typedef OpaquePtr SRCallBackUPP;
typedef SOMLargeStruct SRCallBackParam; /* Derived from a struct of 8 bytes in size */
/* Recognition System Types */
/* Recognition System Properties */
/* Speech Source Types */
/* Notification via Apple Event or Callback */
/* Notification Flags */
/* Apple Event selectors */
/* AppleEvent message class */
/* AppleEvent message event ids */
/* AppleEvent Parameter ids */
/* AppleEvent Parameter types */
/* SRRecognizer Properties */
/* 0 means more accurate but slower. */
/* 100 means (much) less accurate but faster. */
/* Operational Status Flags */
/* Recognition Result Properties */
/* SRLanguageObject Family Properties */
/* LM Object Types -- returned as kSRLMObjType property of language model objects */
/* a normal and reasonable rejection level */
/********************************************************************************/
/* NOTES ON USING THE API */
/* */
/* All operations (with the exception of SRGetRecognitionSystem) are */
/* directed toward an object allocated or begot from New, Get and Read */
/* type calls. */
/* */
/* There is a simple rule in dealing with allocation and disposal: */
/* */
/* * all toolbox allocations are obtained from a SRRecognitionSystem */
/* */
/* * if you obtain an object via New or Get, then you own a reference */
/* to that object and it must be released via SRReleaseObject when */
/* you no longer need it */
/* */
/* * when you receive a SRRecognitionResult object via AppleEvent or */
/* callback, it has essentially been created on your behalf and so */
/* you are responsible for releasing it as above */
/* */
/* * when you close a SRRecognitionSystem, all remaining objects which */
/* were allocated with it will be forcefully released and any */
/* remaining references to those objects will be invalid. */
/* */
/* This translates into a very simple guideline: */
/* If you allocate it or have it allocated for you, you must release */
/* it. If you are only peeking at it, then don't release it. */
/* */
/********************************************************************************/
/* Opening and Closing of the SRRecognitionSystem */
/* Accessing Properties of any Speech Object */
/* Any object obtained via New or Get type calls must be released */
/* SRRecognizer Instance Functions */
/* Language Model Building and Manipulation Functions */
/* Operations on any object of the SRLanguageObject family */
/* Traversing SRRecognitionResults or SRLanguageObjects */
/* Utilizing the System Feedback Window */
#endif
#endif /* __SOMIDL__ */
#endif /* __SPEECHRECOGNITION_IDL__ */